package com.zhichat.web.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhichat.infrastructure.Enums.ContactStatusEnum;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName: ContactSearchVO
 * @Description: 联系人查询VO
 * @Author: 团长九哥 https://space.bilibili.com/602197686
 * @CreateDate: 2024/11/17 13:41
 */
@Data
public class UserSearchVO implements Serializable {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;
    private String userId2;
    private String nickname;
    private Integer gender;
    private String areaName;
    private Integer status;
    private String statusName;

    public String getStatusName() {
        return ContactStatusEnum.getEnumByCode(status).getDesc();
    }
}
